<?php
     @session_start();
    include("template/head.php");
  	//  include("template/menu_left.php");   
  	if($user['account_login']=="user"){
		header('location:list_article.php?action=access_denied');
	}
    include("submit/Articles/test_qte.php");
?>
    <div class="container-fluid">
        <div class="row-fluid">
                
        <?php include("template/menu_left.php") ?>                
        
        <div class="span9" id="content">
        	 <?php 
                    if (empty($_GET['user_email']) OR empty($_GET['userID'])) {
                       header("Location:user.php?action=error");
                    } else {
                       
                   
                    
                    $obj = new Mysql ();
                    $requet = "SELECT * FROM user_login WHERE email_login='".$_GET['user_email']."' AND id_login='".$_GET['userID']."'";
                    $suppr = mysql_query($requet);
                    $modal=mysql_fetch_array($suppr) ;
                     }
                ?>
                
            <div class="row-fluid">
              

            <!-- block -->
                <!--  ************************ ROW ************************  -->
              <div class="span12">   
                 <div class="block">
                 	<form id="formAddIntervention" class="form-horizontal" method="post" action="submit/add_user.php?action=update&id_user=<?php echo $_GET['userID'];?>">
                    <div class="navbar navbar-inner block-header">
                        <div class="muted pull-left">Editer profil : <?php echo $modal['email_login']; ?></div>
                        <!-- .toolbar -->
                    </div>   
                    <div class="block-content collapse in" id="div-1">
                    	<br><br>
                    <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Email utilisateur :</label>
                          <div class="controls">
                            <input type="text" value="<?php echo $modal['email_login']; ?>" class="validate[required,custom[email]] form-control" name="email" >
                          </div>
                    </div>
                    
                   <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Mot de passe :</label>
                          <div class="controls">
                            <input type="password" value="<?php echo $modal['password_login']; ?>" class="validate[required] form-control" name="password" >
                          </div>
                    </div>
                    
                    <div class="control-group">  
                            <label class="control-label span2" for="designation">Type de compte :</label>
                            <div class="controls">
		 						<select class="validate[required] form-control" id="sport" name="account_type">
                                <option value="">Type du compte</option>
                                <?php 
                                    if ($modal['account_login']=="admin") {
                                        echo '<option value="admin">Administrateur</option>';
                                    } else {
                                        echo '
                                            <option value="admin">Administrateur</option>
                                            <option value="user">Gestionnaire</option>
                                        ';
                                    }
                                    
                                ?>
                                
                            </select>	
                            </div>
                    </div>      
                     <!-- /.control-group -->
                    </div>
                    </div>
                    <input class="span3 btn btn-inverse" type="submit" value="Editer" style="margin-bottom:1em; float: right;">
                   </form>
              </div>
            <!--  ************************ / ROW ************************  -->
            <!-- block -->
               
                    
              
          
          
          </div>
            <hr>
        </div>
<?php  include("template/footer_form.php") ; ?>